<template>

	<view class="page_wrap">
		<view class="info_wrap">
			<view class="info_item z-flex z-row-between z-col-center ">
				<view class="info_item_left z-flex z-col-center">
					<view class="info_item_left_left" @click="toClick">
						<uv-avatar :src="avatarUrl" size='58'></uv-avatar>
					</view>
					<view class="info_item_left_right">
						nickName
					</view>
				</view>
				<view class="info_item_right z-flex">
				</view>
			</view>
		</view>


		<view class="grid_wrap_2_outer" style="background-color: aquamarine;">
			<view class="grid_wrap_2">
				<view class="grid_title z-flex z-col-center z-row-between">
					<view class="grid_title_left u-font-28">
						我的订单
					</view>
					<view class="grid_title_right z-flex z-col-center">
						<text>全部</text>
						<uv-icon name="arrow-right" color="#C1C1C1" size='10px'></uv-icon>
					</view>
				</view>
				<uv-grid :border="false" col='4'>
					<uv-grid-item>
						<view class="grid_item_2 z-flex-col z-col-center">
							<view class="grid_item_2_top">
								<uv-image :fade="false" src="/static/images/icon/1.png" width="48rpx" height="48rpx">
								</uv-image>
							</view>
							<view class="grid_item_2_bottom">
								待付款
							</view>
						</view>
					</uv-grid-item>

					<uv-grid-item>
						<view class="grid_item_2 z-flex-col z-col-center">
							<view class="grid_item_2_top">
								<uv-image :fade="false" src="/static/images/icon/1.png" width="48rpx" height="48rpx">
								</uv-image>
							</view>
							<view class="grid_item_2_bottom">
								待使用
							</view>
						</view>
					</uv-grid-item>
					<uv-grid-item>
						<view class="grid_item_2 z-flex-col z-col-center">
							<view class="grid_item_2_top">
								<uv-image :fade="false" src="/static/images/icon/1.png" width="48rpx" height="48rpx">
								</uv-image>
							</view>
							<view class="grid_item_2_bottom">
								待退订
							</view>
						</view>
					</uv-grid-item>
				</uv-grid>

			</view>
		</view>
		<view class="grid_wrap_2_outer" style="background-color: aquamarine;">
			<view class="grid_wrap_2">
				<view class="grid_title z-flex z-col-center z-row-between">
					<view class="grid_title_left u-font-28">
						其他
					</view>
					<view class="grid_title_right z-flex z-col-center">
						
					</view>
				</view>
				<uv-grid :border="false" col='4'>
					<uv-grid-item>
						<view class="grid_item_2 z-flex-col z-col-center">
							<view class="grid_item_2_top">
								<uv-image :fade="false" src="/static/images/icon/1.png" width="48rpx" height="48rpx">
								</uv-image>
							</view>
							<view class="grid_item_2_bottom">
								联系我们
							</view>
						</view>
					</uv-grid-item>

					<uv-grid-item>
						<view class="grid_item_2 z-flex-col z-col-center">
							<view class="grid_item_2_top">
								<uv-image :fade="false" src="/static/images/icon/1.png" width="48rpx" height="48rpx">
								</uv-image>
							</view>
							<view class="grid_item_2_bottom">
								隐私协议
							</view>
						</view>
					</uv-grid-item>
					<uv-grid-item>
						<view class="grid_item_2 z-flex-col z-col-center">
							<view class="grid_item_2_top">
								<uv-image :fade="false" src="/static/images/icon/1.png" width="48rpx" height="48rpx">
								</uv-image>
							</view>
							<view class="grid_item_2_bottom">
								分享
							</view>
						</view>
					</uv-grid-item>
					<uv-grid-item>
						<view class="grid_item_2 z-flex-col z-col-center">
							<view class="grid_item_2_top">
								<uv-image :fade="false" src="/static/images/icon/1.png" width="48rpx" height="48rpx">
								</uv-image>
							</view>
							<view class="grid_item_2_bottom">
								意见反馈
							</view>
						</view>
					</uv-grid-item>
				</uv-grid>

			</view>
		</view>
		<uv-modal :show="logoutFlag" @confirm="logout" title="温馨提示" @cancel="logoutFlag=false" confirm-color="#2EB156"
			:show-cancel-button="true" confirm-text="退出" content="是否确认退出？">
		</uv-modal>
		<AsyncUserInfo ref="AsyncUserInfo" @confirm="initUserInfo"></AsyncUserInfo>
		<MyTabbar />
	</view>

</template>

<script>
	import MyTabbar from "@/components/MyTabbar/index.vue"
	import AsyncUserInfo from '@/components/AsyncUserInfo/index.vue';
	import {
		getUserInfo,
		removeUserInfo,
		removeToken,
		getToken,
	} from "@/utils/storage.js"
	export default {
		data() {
			return {
				avatarUrl: '',
				nickName: '',
			}
		},
		onLoad() {},
		onShow() {},
		components: {
			MyTabbar,
			AsyncUserInfo
		},
		methods: {
			toClick() {
				this.$refs.AsyncUserInfo.open()
			},
		}
	}
</script>

<style lang="scss" scoped>
	.page_wrap {
		height: 100vh;
		overflow: auto;
		background-color: #F8F8F8;
		background-image: url('http://47.100.131.137:9000/sdzn-test/14a54d4e88e348e58e8f0a6dfc278e36.png');
		background-repeat: no-repeat;
		background-position: top;
		background-size: 100%;
		padding: 140rpx 34rpx 0;
	}

	.info_wrap {
		margin: 28rpx 0 60rpx;

		.info_item {
			&_left {
				&_left {
					margin-left: 0rpx;
				}

				&_right {
					margin-left: 32rpx;
					font-size: 36rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 600;
					color: #333333;
					line-height: 42px;
				}
			}

			&_right {
				margin-right: 20rpx;
			}
		}
	}

	.grid_wrap_2_outer {
		margin-top: 30rpx;
		width: 682rpx;
		background: linear-gradient(180deg, #F8F8F8 0%, #F8F8F8 100%);
		border-radius: 30rpx 30rpx 0rpx 0rpx;
		margin-bottom: 30rpx;
	}

	.grid_wrap_2 {
		// height: 220rpx;
		background: #fff;
		border-radius: 16rpx;
		overflow: hidden;
		padding: 30rpx;

		.grid_title {
			margin-bottom: 32rpx;

			&_left {
				font-size: 32rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				color: #333333;
				line-height: 44rpx;
			}

			&_right {
				font-size: 26rpx;
				font-family: PingFang SC-Regular, PingFang SC;
				color: #C1C1C1;
				line-height: 30rpx;
			}
		}

		.grid_item_2 {
			padding: 20rpx;

			&_top {
				margin-bottom: 22rpx;
				height: 44rpx;
				width: 44rpx;
				display: flex;
				justify-content: center;
				align-items: center;
			}

			&_bottom {
				font-size: 26rpx;
				font-family: PingFang SC-Regular, PingFang SC;
				color: #333333;
				line-height: 36rpx;
			}
		}
	}


	.button_wrap {
		overflow: hidden;

		.button_item {
			margin-top: 150rpx;
			margin-bottom: 50rpx;
			width: 286rpx;
			height: 64rpx;
			border-radius: 56rpx;
			font-size: 26rpx;
			font-family: PingFang SC-Regular, PingFang SC;
			font-weight: 400;
			color: #B0B0B0;
			line-height: 30rpx;
			border: 2rpx solid #B0B0B0;
		}
	}

	._footer {
		height: 250rpx;
	}

	.mune_list {
		background-color: #fff;
		padding: 24rpx;
		width: 100%;
		border-radius: 16rpx;
		margin-bottom: 30rpx;
		color: #333;

	}

	.f-w-600 {
		font-weight: 600;
	}

	.col-333 {
		color: #333;
	}
</style>